package cn.anecansaitin.whimsy.client.item.render.handcannon;

import cn.anecansaitin.whimsy.Whimsy;
import cn.anecansaitin.whimsy.common.item.handcannon.HandCannonArm;
import net.minecraft.client.Minecraft;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib.model.DefaultedItemGeoModel;
import software.bernie.geckolib.renderer.GeoItemRenderer;

public class HandCannonArmRender extends GeoItemRenderer<HandCannonArm> {
    private final ResourceLocation playerSkin = Minecraft.getInstance().player.getSkin().texture();

    public HandCannonArmRender() {
        super(new DefaultedItemGeoModel<>(Whimsy.resource("hand_cannon_arm")));
    }

    @Override
    public ResourceLocation getTextureLocation(HandCannonArm animatable) {
        return playerSkin;
    }
}
